import java.util.Scanner;

/**
 * Created by dllo on 18/3/28.
 */
public class Question01 {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        System.out.println("请输入金额");
        int money= scanner.nextInt();
        int money100 = money / 100;//求百张数
        money = money % 100;//求百的模
        int money50 = money / 50;//求五十的张数
        money = money % 50;//求50的模
        int money20 = money / 20;//求20的张数
        money = money % 20;//求20的模
        int money10 = money / 10;//求10的张数
        money = money % 10;//求10的模
        int money5 = money / 5;//求5的张数
        money = money % 5;//求5的模
        System.out.println("最少需要多少张纸币:"
                + money100 + "张100元,"
                + money50 + "张50元,"
                + money20 + "张20元,"
                + money10 + "张10元,"
                + money5 + "张5元,"
                + money + "张1元 组成");


    }
}
